<?php
	App::import("Controller","Config.BaseConfig");
	class PaidListingConfigController extends BaseConfigController
	{
		var $name = "PaidListingConfig";
		var $abstractView = "config.generic_config";
		var $configModelAlias = "PaidListingConfig";
		function admin_setting()
		{
			$this->helpers[] = "PaidListings.PlanDisplay";
			if(!checkSessionKey('paid_listings'))
			{
				$this->warningMsg(__("You haven't entered a license for Paid listings addon yet. Please add the license."));
				$this->redirect('/admin/config/generic_config/setting/License');
			}
			if(!cr("ListingConfig.business_owner"))
			{
				$this->warningMsg(__("It's mandatory to enable claim listings functionality to use paid listings so that listing's owners can claim the ownership on their listings. Please enable claim listings functionality."));
				$this->redirect('/admin/site_config/setting/Listing');
			}
			parent::admin_setting("PaidListing");
			$this->pageTitle = __("Paid Listing Settings");
		}
	}
?>